var songs = ['tom', 'cat'];
var Direction;
(function (Direction) {
    Direction["Up"] = "Up";
    Direction["Down"] = "Down";
    Direction["Left"] = "Left";
    Direction["Right"] = "Right";
})(Direction || (Direction = {})); //Direction如果没有值,就给一个空对象
function ChangeDirection(direction) {
    console.log(direction);
}
ChangeDirection(Direction.Down);
